import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import useAppStore from './modules/app';
import useUserStore from './modules/user';
import useRoleStore from './modules/role';
import useTabBarStore from './modules/tab-bar';
import useMarkLesionStore from './modules/mark-lesion';
import useTaskInfo from './modules/task-info';
import useToolBar from './modules/toolBar';
import useFilmReadHeader from './modules/filmReadHeader';
import useLesionData from './modules/lesionData';
import usePicContent from './modules/picContent';
import useFilmReadRight from './modules/filmReadRight';
import useFilmReadLeft from './modules/filmReadLeft';
import useProcessHeader from './modules/processHeader';
import useProcessData from './modules/processData';
import useVideo from './modules/video';
import useProjectDetailStore from "./modules/projectDetail"

// 2023-5-26调整之前阅片逻辑
import useFilmRead from './modules/filmRead'

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
export { 
  useAppStore, 
  useUserStore, 
  useRoleStore,
  useTabBarStore, 
  useMarkLesionStore, 
  useTaskInfo, 
  useToolBar, 
  useFilmReadHeader, 
  useLesionData, 
  usePicContent, 
  useFilmReadRight,
  useFilmReadLeft,
  useProcessHeader,
  useProcessData,
  useFilmRead,
  useVideo,
  useProjectDetailStore
};
export default pinia;
